package com.xyyl.patient.entity.base;

import java.io.Serializable;
import java.util.List;

/**
 * @projectName:xyyl-oms-upush
 * @ClassName: NotificationEntity
 * @Description:通知消息Entity 封装消息的基本参数
 * @author chens
 * @date 2017年9月28日
 *
 */
public class NotificationEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	/**设备编号列表 **/
	private List<String> deviceTokens;
	/** 设备编号 **/
	private String deviceToken;
	/** 通知标题,默认"馨语医疗" **/
	private String notificationTitle;
	/** 消息标题 **/
	private String msgTitle;
	/** 消息内容 **/
	private String msgContent;
	/** 当前模式：默认true,测试环境 **/
	private boolean devMode;
	/**
	 * 点击"通知"的后续行为，默认为打开app 必填 值可以为: 
	 * "go_app": 打开应用 
	 * "go_url": 跳转到URL
	 * "go_activity": 打开特定的activity 
	 * "go_custom": 用户自定义内容。
	 **/
	private String afterOpen;

	/**
	 * 当"after_open"为"go_activity"时，必填。 通知栏点击后打开的Activity
	 **/
	private String activity;
	/** 声音 **/
	private String sound;
	
	/**医生ID,如果设备编号为空，则自动通过ID查找 **/
	private Long [] doctorIds;
	
	/**业务类型：1,电话订单  2.极速电话 **/
	private int businessType;
	

	public NotificationEntity() {}
	
 
	/**
	 * @param deviceToken  设备编号
	 * @param notificationTitle  自定义通知标题
	 * @param msgTitle  消息标题
	 * @param msgContent  消息内容
	 * @param activity   通知栏点击后打开的Activity
	 */
	public NotificationEntity(String deviceToken, String notificationTitle, String msgTitle, String msgContent,
			String activity) {
		super();
		this.deviceToken = deviceToken;
		this.notificationTitle = notificationTitle;
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.activity = activity;
	}

	/**
	 * @param deviceToken 设备编号
	 * @param msgTitle 消息标题
	 * @param msgContent 消息内容
	 * @param activity   通知栏点击后打开的Activity
	 */
	public NotificationEntity(String deviceToken, String msgTitle, String msgContent,String activity) {
		super();
		this.deviceToken = deviceToken;
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.activity = activity;
	}
	
	/**
	 * @param msgTitle
	 * @param msgContent
	 * @param activity
	 */
	public NotificationEntity(String msgTitle, String msgContent,String activity) {
		super();
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.activity = activity;
	}


	/**
	 * @param deviceTokens 设备编号集合
	 * @param msgTitle  消息标题
	 * @param msgContent 消息内容
	 * @param activity 通知栏点击后打开的Activity
	 */
	public NotificationEntity(List<String> deviceTokens, String msgTitle, String msgContent,String activity) {
		super();
		this.deviceTokens = deviceTokens;
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.activity = activity;
	}

	/**
	 * @param deviceTokens 设备编号集合
	 * @param notificationTitle 自定义通知标题
	 * @param msgTitle 消息标题
	 * @param msgContent 消息内容
	 * @param activity  通知栏点击后打开的Activity
	 */
	public NotificationEntity(List<String> deviceTokens, String notificationTitle, String msgTitle, String msgContent,
			String activity) {
		super();
		this.deviceTokens = deviceTokens;
		this.notificationTitle = notificationTitle;
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.activity = activity;
	}


	public NotificationEntity(List<String> deviceTokens, String deviceToken, String notificationTitle, String msgTitle,
			String msgContent, boolean devMode, String afterOpen, String activity, String sound) {
		super();
		this.deviceTokens = deviceTokens;
		this.deviceToken = deviceToken;
		this.notificationTitle = notificationTitle;
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.devMode = devMode;
		this.afterOpen = afterOpen;
		this.activity = activity;
		this.sound = sound;
	}


	public List<String> getDeviceTokens() {
		return deviceTokens;
	}
	public void setDeviceTokens(List<String> deviceTokens) {
		this.deviceTokens = deviceTokens;
	}
	public String getDeviceToken() {
		return deviceToken;
	}
	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}
	public String getNotificationTitle() {
		return notificationTitle;
	}
	public void setNotificationTitle(String notificationTitle) {
		this.notificationTitle = notificationTitle;
	}
	public String getMsgTitle() {
		return msgTitle;
	}
	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}
	public String getMsgContent() {
		return msgContent;
	}
	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}
	public boolean isDevMode() {
		return devMode;
	}
	public void setDevMode(boolean devMode) {
		this.devMode = devMode;
	}
	public String getAfterOpen() {
		return afterOpen;
	}
	public void setAfterOpen(String afterOpen) {
		this.afterOpen = afterOpen;
	}
	public String getActivity() {
		return activity;
	}
	public void setActivity(String activity) {
		this.activity = activity;
	}
	public String getSound() {
		return sound;
	}
	public void setSound(String sound) {
		this.sound = sound;
	}


    

	public int getBusinessType() {
		return businessType;
	}


	public void setBusinessType(int businessType) {
		this.businessType = businessType;
	}


	public Long[] getDoctorIds() {
		return doctorIds;
	}


	public void setDoctorIds(Long[] doctorIds) {
		this.doctorIds = doctorIds;
	}


   
	
	
}
